package fy.mdm.bean;

import org.json.JSONException;
import org.json.JSONObject;

public class FiexdAssetsBean {

	// 设备条码
	private String assetBarcode;
	// 设备类型
	private String assetNmuber;
	//设备名称
	private String assetsName;
	// 供应商名称
	private String assetName;
	// 规格型号
	private String assetSpeModel;
	//生产线名称
	private String lineName;
	//生产线代码
	private String lineCode;
	//新生产线名称
	private String newLineName;
	//新生产线代码
	private String newLineCode;


	private long summaryId;

	private String billname;
	private String applier;
	private String ts;
//------------------------------------------------------------
	public String getLineCode() {
		return lineCode;
	}

	public String getAssetsName() {
		return assetsName;
	}

	public void setAssetsName(String assetsName) {
		this.assetsName = assetsName;
	}

	public String getNewLineName() {
		return newLineName;
	}

	public void setNewLineName(String newLineName) {
		this.newLineName = newLineName;
	}

	public String getNewLineCode() {
		return newLineCode;
	}

	public void setNewLineCode(String newLineCode) {
		this.newLineCode = newLineCode;
	}

	public void setLineCode(String lineCode) {
		this.lineCode = lineCode;
	}
	



	public String getLineName() {
		return lineName;
	}



	public void setLineName(String lineName) {
		this.lineName = lineName;
	}

	public String getAssetBarcode() {
		return assetBarcode;
	}

	public void setAssetBarcode(String assetBarcode) {
		this.assetBarcode = assetBarcode;
	}

	public String getAssetNmuber() {
		return assetNmuber;
	}

	public void setAssetNmuber(String assetNmuber) {
		this.assetNmuber = assetNmuber;
	}

	public String getAssetName() {
		return assetName;
	}

	public void setAssetName(String assetName) {
		this.assetName = assetName;
	}

	public String getAssetSpeModel() {
		return assetSpeModel;
	}

	public void setAssetSpeModel(String assetSpeModel) {
		this.assetSpeModel = assetSpeModel;
	}

	public long getSummaryId() {
		return summaryId;
	}

	public void setSummaryId(long summaryId) {
		this.summaryId = summaryId;
	}

	public String getBillname() {
		return billname;
	}

	public void setBillname(String billname) {
		this.billname = billname;
	}

	public String getApplier() {
		return applier;
	}

	public void setApplier(String applier) {
		this.applier = applier;
	}

	public String getTs() {
		return ts;
	}

	public void setTs(String ts) {
		this.ts = ts;
	}

	public String getID() {
		return new StringBuilder().append("assetBarcode").append(assetBarcode)
				.toString();
	}
//	public String getLINE() {
//		return new StringBuilder().append("newLineCode").append(newLineCode)
//				.toString();
//	}

	public JSONObject getJSONObject() throws JSONException {
		JSONObject jo = new JSONObject();
		jo.put("assetBarcode", assetBarcode);
		jo.put("assetSpeModel", assetSpeModel);
		jo.put("assetsName", assetsName);
		jo.put("assetName", assetName);
		jo.put("assetNmuber", assetNmuber);
		jo.put("lineName",lineName);
		jo.put("lineCode",lineCode);
		jo.put("newLineName",newLineName);
		jo.put("newLineCode",newLineCode);

		return jo;
	}	
//	public JSONObject getlineJSONObject() throws JSONException {
//		JSONObject jo = new JSONObject();
//
//		jo.put("newLineName",newLineName);
//		jo.put("newLineCode",newLineCode);
//
//		return jo;
//	}

}
